import request from '../utils/request.js';

//查询所有角色
export function findAll(){
    return request({
      url:'/api/rbacRole/',
      method:'get',
    })
}
//新增
export function addOne(data){
    return request({
      url:'/api/rbacRole/',
      method:'post',
      data
    })
}
  
  //删除
export function deleteOne(data){
    return request({
      url:'/api/rbacRole/'+data,
      method:'delete',
    })
  }
  
  //更新
  export function editOne(data){
    return request({
      url:'/api/rbacRole/',
      method:'put',
      data
    })
}
  //查询 
export  function searchRole(data,data1){
  return request({
    url:'/api/rbacRole/'+data.page+'/'+data.limit+'?key='+data1.name+'&key1='+data1.code,
    method:'get',
  })
}


